package com.infinite.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
@NoArgsConstructor

//员工表
@Alias("employee")
public class Employee {
    private Integer id;
    private String lastName;
    private String email;
    private Integer gender; //0:女  1:男
    private Integer deptId;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birth;



}


